using System;
using System.Collections.Generic;

namespace CMS.Core.Domain
{
    /// <summary>
    /// DiaBan object for NHibernate mapped table DiaBan.
    /// </summary>
    [Serializable]
    public class DiaBan : DomainObject<System.Int32>
    {


        private System.String _TenDiaBan;        
        private System.Byte _ThuTu;
        private System.Int32 _MaDiaBanTrucThuoc;
        private System.Boolean _TrangThai;
        private DiaBan _MaDiaBanTrucThuocLookup;
        private IList<DiaBan> _DiaBans = new List<DiaBan>();

        public DiaBan()
        {
        }

        public DiaBan(System.Int32 id)
        {
            base.ID = id;
        }

         public virtual System.String TenDiaBan {
             get { return _TenDiaBan; }
             set { _TenDiaBan = value;}
         }

        public virtual System.Int32 MaDiaBanTrucThuoc
        {
            get { return _MaDiaBanTrucThuoc; }
            set { _MaDiaBanTrucThuoc = value; }
        }

         public virtual System.Byte ThuTu {
             get { return _ThuTu; }
             set { _ThuTu = value;}
         }

         public virtual System.Boolean TrangThai {
             get { return _TrangThai; }
             set { _TrangThai = value;}
         }

         public virtual DiaBan MaDiaBanTrucThuocLookup{
             get { return _MaDiaBanTrucThuocLookup; }
             set { _MaDiaBanTrucThuocLookup = value;}
         }

         public virtual IList<DiaBan> DiaBans{
             get { return _DiaBans; }
             set { _DiaBans = value; }
         }


        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }

     }
}
